<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<!--

    This file is part of Blue Violin.

    Blue Violin is free software: you can redistribute it and/or modify
    it under the terms of the GNU Affero Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    Blue Violin is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU Affero Public License for more details.

    You should have received a copy of the GNU Affero Public License
    along with Blue Violin.  If not, see <http://www.gnu.org/licenses/>.

    Blue Violin  Copyright (C) 2008  Blue Violin, Inc. & Josh Watts <josh.watts@blueviolin.org>
	For more information, visit http://www.blueviolin.org/

    This program comes with ABSOLUTELY NO WARRANTY.

-->

<html>
	<head>

		<title>Change Value</title>
		<script>

function Cancel()
{
	oDialog.modifiedValue = null;
	window.close();
}

function Save()
{
	sValue = document.getElementById("txtValue").value;
	oDialog.modifiedValue = sValue;
	window.close();
}


function OnLoad()
{
	window.oDialog = window.dialogArguments;
	document.getElementById("divName").innerHTML = oDialog.name;
	document.getElementById("txtValue").value = oDialog.value;
}

		</script>
		<style>
BODY
{
	padding: 2px;
	background-color: menu;
}

.Name
{
	font-family: Arial, Verdana, sans-serif;
	font-weight: bold;
}

.TextBox
{
	width: 98%;
	background-color: white;
	border: 1px solid black;
}

.Button
{
	/* border: 1px solid black; */
	width: 10em;
}

.CenterButtons
{
	text-align: center;
	margin-top: 10px;
	/* background-color: buttonface; */
}

		</style>
	</head>
	<body 
		onload="OnLoad()"
		>

		<div
			id="divName"
			class="Name"
			>
		</div>
		<div
			id="divValue"
			>
			<input 
				type="text"
				id="txtValue"
				class="TextBox"
				/>
		</div>
		<div
			id="divButtons"
			class="CenterButtons"
			>
			<input 
				type="button"
				id="btnSave"
				value="Save"
				class="Button"
				onclick="Save()"
				/>

			<input 
				type="button"
				id="btnCancel"
				value="Cancel"
				onclick="Cancel()"
				class="Button"
				/>
		</div>
	</body>
</html>
